<h1>Listing gadgets</h1>

<table>
  <tr>
  </tr>

<% for gadget in @gadgets %>
  <tr>
  	<td><%= gadget.title %></td>
    <td><%= link_to 'Show', gadget %></td>
    <td><%= link_to 'Edit', edit_gadget_path(gadget) %></td>
    <td><%= link_to 'Destroy', gadget, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New gadget', new_gadget_path %>
